<?php

namespace App\Models;

use App\Models\Member\Member;
use Encore\Admin\Form;
use Encore\Admin\Grid;
use Encore\Admin\Traits\ModelTree;
use Illuminate\Database\Eloquent\Model;
use Encore\Admin\Traits\DefaultDatetimeFormat;

class UserRole extends Model
{
    use DefaultDatetimeFormat, ModelTree;

    protected $table = 'admin_role_users';

    public $sortable = [
        'order_column_name' => 'order',
        'sort_when_creating' => true,
    ];

    // 允许大量赋值的字段
    protected $fillable = ['user_id', 'role_id',];


}
